package com.dearbinge.data.api.commodity;

import com.dearbinge.data.dto.commodity.CommodityMessageDto;
import com.dearbinge.data.pojo.commodity.CommodityMessage;
import com.dearbinge.utils.PageResult;

import java.util.List;

public interface CommodityMessageService {
    Integer insert(CommodityMessage commodityMessage);

    Integer update(CommodityMessage commodityMessage);

    List<CommodityMessageDto> getAll();

    PageResult<CommodityMessageDto> getByAsk(String keyWords, Boolean isDeleted, Integer pageNo, Integer pageSize);

    CommodityMessageDto getById(Integer id);
}
